import {createSlice} from "@reduxjs/toolkit"


const schoolSlice = createSlice({
    name:'school',
    initialState:{
        name:'清华'
    },
    reducers:{
        setName(state, action){
            state.name = action.payload
            
        }
    }
})
 


export const {setName } = schoolSlice.actions
export const {reducer:schoolReducer} = schoolSlice